{include theme=com/head}

<section class="imagedetail" bosscms="imagedetail" group>
  <article>
    <h1>{group.name}</h1>
    <div class="top">
      <b>{config.group_time}</b>
      <i>{group.mtime|date='Y-m-d H:i:s',###}</i>
      <b>{config.group_notice}</b>
      <i><notice type="{group.type}" id="{group.id}">{group.notice}</notice></i>
      {if:(config.member_open)}
      <i class="fa fa-star{if:(!group.collect)}-o{/if}">
        <a collect="{group.type}_{group.id}" href="javascript:;">{config.group_collect}</a>
      </i>
      {/if}
    </div>
	  {if:(group.complex)}
    <div class="sub">
      {foreach data=group.complex}
      {if:($v.value)}
      <dl>
        <dt><span>{$v.title}</span></dt>
        <dd><span>{$v.value}</span></dd>
      </dl>
      {/if}
      {/foreach}
    </div>
	  {/if}
    <div class="content">
	    {if:(group.images && $images=json::decode(group.images))}
      <div class="images">
        <div class="imgs">
		      {foreach data=$images}
          <div class="img">
            <img src="{$v}" alt="{group.name}" />
          </div>
		      {/foreach}
        </div>
      </div>
	    {/if}
      <aside>{group.content}</aside>
      {if:(group.tag)}
      <div class="tag">
      {foreach data=group.tag}
      <a href="{$v.url}" title="{$v.title}">{$v.title}</a>
      {/foreach}
      </div>
      {/if}
      {both class=html id=group.id items=items.id}{/both}
      {comment class=html model=group.type gid=group.id}
      <div class="comment">{$html}</div>
      {/comment}
    </div>
  </article>
</section>

{include theme=com/foot}